<?php
/**
 * created by zzy
 * date: 2017/10/20 17:41
 */

namespace App\Eloquent\Ygt;

class Department extends DbEloquent{

    protected $table    = 'ygt_department';
    // 取对应子部门
    public static function getListByPid( $pid ){

        $where              = [ 'pid'=>$pid ];
        $result             = self::getList( $where );
        return $result;
    }
    
}
